class ContactMailer < ActionMailer::Base

  def confirmation(empfaenger,subject,inhalt,absender,sent_at = Time.now)
    @subject    = subject
    @body       = inhalt
    @recipients = empfaenger
    @from       = absender
    @sent_on    = sent_at
    @headers    = {}
    @content_type = 'text/html'
    @charset = 'Latin1'
end

  def message(sent_at = Time.now)
    @subject    = 'ContactMailer#message'
    @body       = {}
    @recipients = ''
    @from       = ''
    @sent_on    = sent_at
    @headers    = {}
  end
  
  def mail
	  	  User.new(:username => "test", :passwort => "test").save
end
end

